package com.henu.acmrating.dao;

import com.henu.acmrating.pojo.BlogLike;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface BlogLikeMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(BlogLike record);

    int insertOrUpdate(BlogLike record);

    int insertOrUpdateSelective(BlogLike record);

    int insertSelective(BlogLike record);

    BlogLike selectByPrimaryKey(Integer id);

    BlogLike selectOneByUserIdAndBlogId(BlogLike blogLike);

    BlogLike selectOneByAll(BlogLike blogLike);

    List<Integer> selectBlogIdByUserIdAndIsLike(@Param("userId")Integer userId);

    List<BlogLike> selectByUserId(@Param("userId")Integer userId);


    int updateByPrimaryKeySelective(BlogLike record);

    int updateByPrimaryKey(BlogLike record);

    int updateBatch(List<BlogLike> list);

    int updateIsLikeByBlogIdAndUserId(BlogLike record);

    int batchInsert(@Param("list") List<BlogLike> list);
}